package com.xbongbong.workflow.pojo.nodes;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @author 吴峰
 * @date 2021/05/24 19:39
 */
@Getter
@Setter
@ToString
public class WorkflowTitlePojo implements Serializable {

    private static final long serialVersionUID = 2741543653842132158L;
    /**
     * 节点id
     */
    private Long workflowNodeId;
    /**
     * 节点对应的表单id
     */
    private Long formId;
    /**
     * 节点对应的表单的saasMark
     */
    private Integer saasMark;
    /**
     * 节点对应的表单的业务类型
     */
    private Integer businessType;
    /**
     * 字段类型
     */
    private Integer fieldType;



    /**
     * 字段标识
     */
    private String attr;
    /**
     * 手动输入字符
     */
    private String content;

    /**
     * 字段名称
     */
    private String attrName;

    /**
     * attr或者subAttr对应数据的值
     */
    private List<Object> value;

    /**
     * 子表单字段标识
     */
    private String subAttr;

    /**
     * 字段是否是触发节点字段的标识，非1:不是；1:是
     *
     */
    private Integer triggerNodeFlag;

    /**
     * 是否为系统字段
     */
    private Integer system;

    /**
     * 系统字段的属性 当system为1时：此字段才有值；（提交人；commitUser  触发表单：triggerForm）
     */
    private String property;

    public WorkflowTitlePojo() {
    }

    public WorkflowTitlePojo( String attr, String attrName, Integer triggerNodeFlag, Integer system, String property) {
        this.attr = attr;
        this.attrName = attrName;
        this.triggerNodeFlag = triggerNodeFlag;
        this.system = system;
        this.property = property;
    }
}
